<?php /* Smarty version Smarty-3.0.8, created on 2011-07-08 16:54:01
         compiled from "E:\wamp\clases_tarda\Smarty\templates\templatesMp3\mp3\header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:215814e173629ae48e9-27254169%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e55387bb89b1f6c562bb8e4a3ea49c0fe1d6f334' => 
    array (
      0 => 'E:\\wamp\\clases_tarda\\Smarty\\templates\\templatesMp3\\mp3\\header.tpl',
      1 => 1310144021,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '215814e173629ae48e9-27254169',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<html>
	<head>
		<title>MP3 - PHP</title>
		<link type="text/css" rel="stylesheet" href="/tardes/css/style.css" />
		<script type="text/javascript" src="/tardes/js/libs/jquery.js"></script>
		<script type="text/javascript" src="/tardes/js/controlRegistre.js"></script>  
	</head>
	<body>
		<div>
			<table class="header">
			<tr>
			<td align="right" width="250"></td>
			<td align="center"><h1 class="titulo">MP3 - PHP</h1></td>
			<td align="right" width="250">
			<?php if (isset($_smarty_tpl->getVariable('usuari',null,true,false)->value)&&$_smarty_tpl->getVariable('usuari')->value!=''){?>
				Benvingut, <?php echo $_smarty_tpl->getVariable('usuari')->value;?>

				<form method="POST" action="sortir.php" enctype="multipart/form-data">
					<input type="submit" name="sortir" value="Sortir"/>
				</form>
				<form method="POST" action="pujarArxiu.php" enctype="multipart/form-data">
					<input type="submit" name="inici" value="Pujar Cançó"/>
				</form>
				<form method="POST" action="cerca.php" enctype="multipart/form-data">
					<input type="submit" name="cerca" value="Cercar Cançó"/>
				</form>
				<form method="POST" action="veurePlaylist.php" enctype="multipart/form-data">
					<input type="submit" name="veure" value="Veure Playlists"/>
				</form>
			<?php }else{ ?>
			<form method="POST" action="login.php" enctype="multipart/form-data">
			<table width="250">
				<tr>
					<td align="right">Usuari: </td>
					<td><input type="text" name="usuari"/></td>
				</tr>
				<tr>
					<td align="right">Paraula de pas:</td>
					<td><input type="text" name="pdp"/></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" name="login" value="Login"/></td>
				</tr>
				<?php if (isset($_smarty_tpl->getVariable('missatge',null,true,false)->value)&&$_smarty_tpl->getVariable('missatge')->value!=''){?>
					<?php echo $_smarty_tpl->getVariable('missatge')->value;?>

				<?php }?>
			</form>
			<form method="POST" action="registrar.php" enctype="multipart/form-data">
			<tr>
					<td>Ets un nou usuari?</td>
					<td><input type="submit" name="registrar" value="Registrar"/></td>
				</tr>
			</table>
			</form>
			<?php }?>
			</td>
			</tr>
			</table>
		</div>